<template>
	<div class="btn-box">
		<el-button
			class="upload-btn"
			:disabled="!this.file"
			size="small"
			type="primary"
			@click="uploadHandle"
			>上传</el-button
		>
		<el-button
			class="reset-btn"
			:disabled="!this.file"
			size="small"
			@click="resetHandle">
			重置
		</el-button>
	</div>
</template>

<script>
export default {
	name: 'UploadBtn',
	props: ['file'],
	methods: {
		uploadHandle() {
			this.$emit('upload')
		},
		resetHandle() {
			this.$emit('reset')
		}
	},
}
</script>

<style lang="scss" scoped>
</style>